package com.atguigu.yygh.hosp.service;

import com.atguigu.yygh.model.hosp.Hospital;
import com.atguigu.yygh.vo.hosp.HospitalQueryVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @author:ahang
 * @create:2022-09-01 20:19
 * @Description:
 */
public interface HospitalService {

    void save(Map<String, Object> map);

    Hospital getByHoscode(String hoscode);

    Page<Hospital> selectPage(Integer page, Integer limit, HospitalQueryVo hospitalQueryVo);

    void updateStatus(String id, Integer status);

    //根据id主键,查询医院对象
    Map<String,Object> show(String id);

    //根据医院编号获取医院姓名
    String getHospName(String hoscode);

    //根据医院名称模糊查询
    List<Hospital> findByHosname(String hosname);

    //根据医院编号获取医院详情
    Map<String, Object> item(String hoscode);
}
